package org.jeecg.modules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.entity.RunnerMatchDevice;

import java.util.List;

/**
 * @Description: 赛事设备
 * @Author: jeecg-boot
 * @Date:   2022-12-04
 * @Version: V1.0
 */
public interface IRunnerMatchDeviceService extends IService<RunnerMatchDevice> {

	/**
	 * 通过主表id查询子表数据
	 *
	 * @param mainId 主表id
	 * @return List<RunnerMatchDevice>
	 */
	public List<RunnerMatchDevice> selectByMainId(String mainId);

	public List<RunnerMatchDevice> selectByMainIdAndFlag(String mainId,String flag);
	/**
	 *
	 * @author tanxy
	 * @date 2022/12/13 23:12
	 * @param mainId 赛事ID
	 * @param device 设备编号
	 * @return java.util.List<org.jeecg.modules.entity.RunnerMatchDevice>
	 */
	public List<RunnerMatchDevice> selectByMainIdAndDevice(String mainId,String device);
}
